<?php
namespace app\admin\model;

use think\Model;

class GoodsAttr extends Model 
{

   public function addOne($data)
	{
		return $this->insert($data);
	}

	public function getAttrByTypeId($type_id)
	{
		return $this->where('type_id',$type_id)->select();
	}
}